package entity

import (
	"shqsoft.cn/pas3ui/base"
)

type PermissionType struct {
	PTID string `gorm:"primary_key;column:PTID"`
	PTNM string `gorm:"column:PTNM"`
}

//TableName Role 角色表名
func (PermissionType) TableName() string {
	return "t_PermissionType"
}

func PermissionTypeEF() base.EntityFunc {
	return func() interface{} {
		entity := PermissionType{}
		return &entity
	}
}
func PermissionTypeESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []PermissionType
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("PermissionType", base.NewDefaultDao(PermissionTypeEF(), PermissionTypeESF(), nil, "my"))
}
